package cd.cdyb.sms.dto.expand;

import cd.cdyb.sms.dto.SignatureDto;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = true)
@Data
public class ExSignatureDto extends SignatureDto {

    private String companyName;

    @NotBlank(message = "签名名称不能为空")
    @Override
    public String getName() {
        return super.getName();
    }

    @NotNull(message = "签名类型不能为空")
    @Override
    public Integer getType() {
        return super.getType();
    }
}
